package com.tm.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

/**
 * @program: springboot02
 * @description:
 * @author: 小仝
 * @create: 2023-04-12 19:30
 **/

@Data
@ToString
@ApiModel
public class Student {
    @ApiModelProperty(value = "学生编号")
    @TableId(value = "sid")
    private int sid;
    @ApiModelProperty(value = "学生姓名")
    private String name;
    @ApiModelProperty(value = "学生年龄")
    private int age;
    @ApiModelProperty(value = "班级编号")
    private int cid;

    @TableField(exist = false)  //表示数据库不存在该字段
    @ApiModelProperty(value = "班级")
    private Class class1;

}
